package com.karaoke.android.data.repository

import com.karaoke.android.data.NetworkTools
import com.karaoke.android.data.domain.PageInfo
import com.karaoke.android.data.domain.QSong
import com.karaoke.android.data.domain.Song
import com.karaoke.android.data.domain.SongPage
import com.karaoke.android.data.onIO
import com.karaoke.android.data.service.SongService
import com.orhanobut.hawk.Hawk
import rx.Observable

/**
 * Created by allen on 2017/4/29.
 */

object SongRepository : SongService
{
    override fun getNewSongs(): Observable<List<Song>>
    {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun getHotSongs(): Observable<List<Song>>
    {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun getRecommends(): Observable<List<Song>>
    {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun getSongs(qSong: QSong): Observable<SongPage>
    {
        return NetworkTools.songService.getSongs(qSong).onIO()
    }
}
